{include file="Index/header" /}

<link href="__PUBLIC__/js/froala/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/froala/css/froala_editor.min.css" rel="stylesheet" type="text/css">
<script src="__PUBLIC__/js/froala/js/froala.jquery.js"></script>
<script src="__PUBLIC__/js/froala/js/froala_editor.min.js"></script>
 
    <form action="{:url('Expert/add')}" method="post" /> 
	    <input type="hidden" name="sbt" value="1">
	    <input type="hidden" name="eid" value="{$eid}">
    	<div class="formbody">
    		<div class="formtitle"><span>专家添加</span></div>
		    <ul class="forminfo">
		     	<li>
			    	<label>姓名</label>
			    	<input name="names" type="text" class="dfinput" value="{$expertInfo.names}" size="80"/>
			    </li> 
		     	 <li>
			    	<label>头像</label>
			    	<div style="float:left;margin-bottom:10px;">
			    	  <input name="photo" id="img1" type="text" readonly class="dfinput" value="{$expertInfo.photo}" size="80"/>
			    	  
			    	 </div>
			    	<label class="config-upload">
								上传<input style="width:0px;" accept="image/*" name="img" id="uploadFile1" onchange="uploadImg(1);" type="file">
					</label>
					<div class="config-upload">
						<a href="javascript:void(0);" onclick="showPic(1);">预览</a>
					</div>
			    </li>
			    
			   
			    <li>
			    	<label>专长领域</label>
			    	<input name="field" type="text" class="dfinput" value="{$expertInfo.field}" size="80"/>
			    </li> 
			   
		    	<li>
		    	 	<label>现任职位</label>
			    	<input name="position" type="text" class="dfinput" value="{$expertInfo.position}" size="80"/>
			    </li>
			    
			    <li>
			    	<label>简要描述</label>
			    	<textarea name="brief_contents" id="brief_contents" style="width:890px;height:200px;">{$expertInfo.brief_contents}</textarea>
			    </li> 
			    
			    <li>
			    	<label>描述</label>
			    	
				  	<div   class="admin-textarea">
				         <textarea id='edit' name="contents">{$expertInfo.contents}</textarea>
					 </div>
			    </li>
			     
			    
			    <li>
			    	<label>&nbsp;</label>
			   		 <input name="submit" type="submit" class="btn" value="确认保存"/>
			   	</li>
		    </ul>
    	</div>
	</form>
<script>
//多文本编辑器
$(function(){
    $('#edit').editable({inlineMode: false, alwaysBlank: true,width:'900px',height:'300px'});
});

//图片上传回调
function uploadCall(obj,path){
	 $("#img"+obj).val(path);
}
//预览
function showPic(obj){
	art.dialog.open($("#showPic").val()+'?pic='+$("#img"+obj).val(),{title:'图片预览'});
}

</script>

{include file="Index/footer" /}